package com.icss.day01;

public class Test7 {
    public static void main(String[] args) {

        int age = 10;
        // 值类型传递
        abc(age);
        System.out.println(age);


        Student stu = new Student();
        stu.setAge(10);
        // 引用类型传递
        abc1(stu);
        System.out.println(stu.getAge());
    }

    private static void abc1(Student stu) {
        stu.setAge(100);
    }

    private static void abc(int age) {
        age = 100;
    }
}
